﻿<%@ Page Language="C#" MasterPageFile="~/Home.master" AutoEventWireup="true" CodeFile="Contact.aspx.cs" Inherits="Contact" Title="Liên Hệ" %>
<%@ Register src="Controls/Map.ascx" tagname="Map" tagprefix="uc1" %>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" Runat="Server">

<div class="title">
    Liên hệ</div>
<div class="body">     
        <asp:Label ID="lblRequireField" runat="server" Text="* : là b&#7855;t bu&#7897;c nh&#7853;p."></asp:Label>
    <table cellpadding="2" width="100%">
        <tr>
            <td width="150" align="right">
                <asp:Label runat="server" ID="lblName" AssociatedControlID="txtName" Text="H&#7885; Tên (*):" />
            </td>
            <td width="400">
                <asp:TextBox runat="server" ID="txtName" Width="100%" />
            </td>
            <td>
                <asp:RequiredFieldValidator runat="server" Display="dynamic" ID="valRequireName"
                    SetFocusOnError="true" ControlToValidate="txtName" ErrorMessage="B&#7855;t bu&#7897;c nh&#7853;p H&#7885; Tên!">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label runat="server" ID="lblAddress" AssociatedControlID="txtAddress" Text="&#272;&#7883;a ch&#7881;:" />
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtAddress" Width="100%" />
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label runat="server" ID="lblPhone" AssociatedControlID="txtPhone" Text="&#272;i&#7879;n tho&#7841;i:" />
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtPhone" Width="100%" />
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label runat="server" ID="lblEmail" AssociatedControlID="txtEmail" Text="Email (*):" />
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtEmail" Width="100%" />
            </td>
            <td>
                <asp:RequiredFieldValidator runat="server" Display="dynamic" ID="valRequireEmail"
                    SetFocusOnError="true" ControlToValidate="txtEmail" ErrorMessage="B&#7855;t bu&#7897;c nh&#7853;p Email c&#7911;a b&#7841;n!">*</asp:RequiredFieldValidator>
 <%--               <asp:RegularExpressionValidator runat="server" Display="dynamic" ID="valEmailPattern"
                    SetFocusOnError="true" ControlToValidate="txtEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                    ErrorMessage="Email b&#7841;n nh&#7853;p không &#273;úng. Vui lòng ki&#7875;m tra l&#7841;i.">*</asp:RegularExpressionValidator>--%>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label runat="server" ID="lblSubject" AssociatedControlID="txtSubject" Text="Tiêu &#273;&#7873; (*):" />
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtSubject" Width="100%" />
            </td>
            <td >
                <asp:RequiredFieldValidator runat="server" Display="dynamic" ID="valRequireSubject"
                    SetFocusOnError="true" ControlToValidate="txtSubject" ErrorMessage="B&#7855;t bu&#7897;c nh&#7853;p tiêu &#273;&#7873;">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label runat="server" ID="lblBody" AssociatedControlID="txtBody" Text="N&#7897;i dung (*):" />
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtBody" Width="100%" TextMode="MultiLine" Rows="8" />
            </td>
            <td>
                <asp:RequiredFieldValidator runat="server" Display="dynamic" ID="valRequireBody"
                    SetFocusOnError="true" ControlToValidate="txtBody" ErrorMessage="B&#7855;t bu&#7897;c nh&#7853;p n&#7897;i dung!">*</asp:RequiredFieldValidator>
            </td>
        </tr>
       
        <tr>
            <td colspan="3" style="text-align: center;">
                <asp:Label runat="server" ID="lblFeedbackOK" Text="N&#7897;i dung liên h&#7879; c&#7911;a b&#7841;n &#273;ã &#273;&#432;&#7907;c g&#7903;i &#273;&#7871;n b&#7897; ph&#7853;n có trách nhi&#7879;m.<br /> Chúng tôi s&#7869; liên h&#7879; l&#7841;i v&#7899;i b&#7841;n trong th&#7901;i gian s&#7899;m nh&#7845;t."
                    SkinID="FeedbackOK" Visible="false" />
            </td>
       </tr>
       <tr>
        <td colspan="3" style="text-align:center;">
                <asp:Button runat="server" ID="btnSubmit" Text="G&#7903;i" OnClick="btnSubmit_Click" />
                <asp:ValidationSummary runat="server" ID="valSummary" ShowSummary="false" ShowMessageBox="true" />
            </td>
        </tr>
    </table>
</div>   
<div class="bottom"></div>
<%--<div class="title">Địa chỉ</div>
<div class="body">
    <uc1:Map ID="Map1" runat="server" />
</div>
<div class="bottom"></div>--%>
</asp:Content>
